package persistence.dao.base;

import java.util.List;

public interface GenericDao<T> {
    
	public Class<T> getEntityClass();

	public List<T> findAll();

	public List<T> findByExample(final T exampleInstance);

	public int countAll();

	public int countByExample(final T exampleInstance);
	
	public T insert(final T entity);
	
	public T update(final T entity);

	public T delete(final int[] id);
	
}